<div class="search" ng-init="init()">
  <div class="search-input">
    <em></em>
    <input type="text" placeholder="请输入股票代码/首字母" ng-model="stkinfo.code">
    <span ng-click="stkinfo.code=''" ng-class="{'del':stkinfo.code}"></span>
  </div>
  <div ng-if="!search_result" style="padding:0.2rem;border-bottom:1px solid #eee;">最近浏览</div>
  <div class="item" ng-if="!search_result" ng-repeat="item in serch_history track by $index" ng-click="go_detail(item);$event.stopPropagation();">
    <span ng-bind="item.code"></span>
    <span ng-bind="item.name"></span>
    <span class="create" ng-click="create(item);$event.stopPropagation();" ng-if="create_button">创建</span>
    <span ng-if="!create_button" ng-class="{'add':!item.flag,'del':item.flag}" ng-click="add_my_zxg(item);$event.stopPropagation();"></span>
  </div>
  <div class="item a-bounceinL" ng-if="search_result" ng-repeat="item in search_result track by $index" ng-click="click_result(item)">
    <span ng-bind="item.code"></span>
    <span ng-bind="item.name"></span>
    <span class="create" ng-click="create(item);$event.stopPropagation();" ng-if="create_button">创建</span>
    <span ng-if="!create_button" ng-class="{'add':!item.flag,'del':item.flag}" ng-click="add_my_zxg(item);$event.stopPropagation();"></span>
  </div>
  <div style="text-align:center;padding:0.2rem;color:#888;" ng-if="(!search_result)&&(serch_history.length>0)" ng-click="del_search_history()">清除浏览记录</div>

</div>
<div>

</div>